{{assign var="title" value="文章分类"}}
{{include file="admin/intop.html"}}
<script type="text/javascript">
var closeListerner = function(){ window.location.reload(); }
function add(){
    showDialog("admin.php?ctl=article&act=catadd",420,280,"添加分类", true, closeListerner);
}
function edit(id){
    showDialog("admin.php?ctl=article&act=catedit&id="+id,420,280,"修改分类", false, closeListerner);
}
</script>
<div class="toolsBar">
     <input type="button" value="添加分类" onclick="add()" class="button_style">
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr>
        <th>ID</th>
        <th>分类名</th>
        <th>上级分类</th>
        <th>排序</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    {{foreach from=$list item=item}}
    <tr>
        <td>{{$item.ID}}</td>
        <td class="lf">{{$item.NAME}}</td>
        <td>{{$item.PARENT_ID}}</td>
        <td>{{$item.SORT_NUM}}</td>
        <td>{{if $item.STATE==1}}启用{{else}}禁用{{/if}}</td>
        <td><a id="GridView1_ctl02_hlkEdit" href="javascript:edit({{$item.ID}})">修改</a>
            | <a id="GridView1_ctl02_hlkDel" href="admin.php?ctl=article&act=catdel&id={{$item.ID}}">删除</a>
        </td>
    </tr>
    {{/foreach}}
</table>
{{include file="admin/infoot.html"}}